<template>
	<view>
		<view class="bb">
			<view class="m16">
				<view class="mlr20"> 
					<list label="用户姓名" :value="user.userName" color="red"></list>
					<list label="与我关系" :value="userKindDes" color="red"></list>
					<list label="用气地址" :value="user.addrName" color="red"></list>
					<list label="表具编号" :value="user.meterNo"></list>
					<list label="表具类型" :value="user.payFlag== '1' ? '预付费' : '后付费'"></list>
				</view>
			</view>
		</view>
		<view class="m36 mt150"><button class="able-button" hover-class="m-button-hover" @click="sure">确认注册</button></view>
	</view>
</template>

<script>
import list from '../../components/List.vue';
let util = require('../../utils/utils.js');
let api = require('../../utils/api.js');
export default {
	data() {
		return {
			user: {},
			params:{},
			userKindDes:''
		}
	},
	async onShow(){
		let data = await util.getStorage("userInfo");
		this.user = data.data;
		this.params = data;
		this.userKindDes = data.userKind.userKindDes;
	},
	methods: {
		sure() {
			api.sureRegister(this.params);
		}
	},
	components: {
		list
	}
};
</script>

<style lang="scss">
	
</style>
